Contents

The following Help Topics are available:

Introduction

About Form

Auxiliary Table Edit Form

Compact Database

Employee Data Form

Help Functions

Login Form

Database Location Form

Send Mail Form

Other Demo Features

For a detailed look at all the reusable functions see RUFVB.HLP file.

For Help on Help, Press F1


Introduction

Simplify your VB programming by using Reusable Functions.  These modules

contain useful functions, constants, and API declarations that can simplify

your programming tasks and cut down on development time. Modules available

at this time include:

        Database Functions

        Message Box Functions

        Initialization File Functions

        Help Functions

        MAPI Functions

        Date/Time Validation Functions

        General Functions

In addition there are several reusable forms:

        Login Form

        Database Location Form

        About Form

        Auxiliary Table Edit Form


About Form

The About form is another reusable form. You can customize this form

with your company name and address.  Then, place it into your application

and set the application title and version number and you have an instance

about form.  If you have Shareware and registered versions of your program

there is a global flag that you can toggle to change from one version to

another. To demonstrate this select Help | Shareware Version to switch the

about box to the non-Shareware version; then rerun the About form.


Auxiluary Table Edit Form
Auxiliary Table Edit Form

If you have one or more database tables that consist of an ID number field

and a string field you can use this handy auxiliary table edit form used in

this demo to edit employee statues. Before running this form you specify

several properties in the global variables it uses. These properties include

the title of the form, the queries it will uses for loading and deleting

records, and the labels for field names.  Then you are ready to add, modify

and delete values in the specified table.


Compact Database

The database compact is one of may database functions available in the

RUF modules.  Functions are also include for repairing an Access database,

creating SQL update and insert statements, database error handling, and

loading database values into list boxes and combo boxes.


Employee Data Form

The Employee Data dialog box demonstrates several features of reusable

functions:

        Date Validation Function

        Combo Box and List Box Loading Functions

        State Input Functions

        General Error Handling Function

        Dialog Box Functions


Help Functions

The help module helps you to help contents, the help search dialog box,

and individual help topics.


Login Form

The logon form is a reusable form. You simply call the form to collect

the a username and password. Then you lookup and compare the user's

password with the password stored in your program's database. There

is also a simple encryption routine include in the RUF modules. In this

demo you can type anything into the username field and the password is:

RUF


Database Location Form

The database location form is another reusable form.  It shows the user

the current path and database name and allows the user to call up a

common file dialog box for finding another database to open.


Other Demo Features

There are a few other features of reusable function included in this

demo: a function to check for command line parameters and a function

to play wave files (the windows speaker driver or a sound card is

required to play wave files). To try this out add the word 'wave' to the

command line of the Program Manager properties of the RufDemo icon and then

double click on  the RufDemo icon (run the program).


Send Mail Form

The reusable functions in the mail module simplify the use of the mapi vbx.

All the programmer has to do is supply an address, topic and message.